from rest_framework import serializers
from .models import CartModel
from course.serializers import courseSerializer
from user.serializers import UserSerializer


class CartSerializer(serializers.ModelSerializer):
    course = courseSerializer()
    user = UserSerializer()

    class Meta:
        model = CartModel
        fields = '__all__'
